package com.newly.common.base.entity.sys.menu.vo;

import com.newly.common.base.constants.MenuConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @program: newly-parent
 * @remark: 菜单能力vo
 * @author: guan
 * @create: 2022-01-01 12:54
 */
@Data
public class MenuAbilityVo {
    /**
     * 菜单能力编码
     */
    @ApiModelProperty("菜单能力编码")
    private Integer code;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    /**
     * 是否具备该能力
     */
    @ApiModelProperty("是否具备该能力")
    private boolean flag;

    public MenuAbilityVo(MenuConstant.Ability value) {
        this.code = value.getCode();
        this.remark = value.getRemark();
        this.flag = value.isFlag();
    }

    public MenuAbilityVo() {
    }
}
